﻿<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
		<meta http-equiv="Cache-Control" content="no-store"/>
		<meta http-equiv="Pragma" content="no-cache"/>
		<meta http-equiv="Expires" content="0"/>
		<title>test EasyUI Messager</title>
	
		<link rel="stylesheet" type="text/css" href="itreasury/easyui_themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="itreasury/easyui_themes/icon.css">
		<link rel="stylesheet" type="text/css" href="itreasury/css/suggest.css">
		<script type="text/javascript" src="itreasury/js/jquery-1.8.0.min.js"></script>
		<script type="text/javascript" src="itreasury/js/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="itreasury/js/locale/easyui-lang-zh_CN.js"></script>
		<script type="text/JavaScript" src="itreasury/js/json.min.js"></script>
		<script type="text/JavaScript" src="itreasury/js/jquery.bgiframe.min.js"></script>
		<script type="text/JavaScript" src="itreasury/js/jquery.actual.min.js"></script>
		<script type="text/JavaScript" src="itreasury/js/jquery.dropshadow.js"></script>
		<script type="text/JavaScript" src="itreasury/js/form_text_amount.js"></script>
		<script type="text/JavaScript" src="itreasury/js/form_text_rate.js"></script>
		<script type="text/JavaScript" src="itreasury/js/arabia_to_chinese.js"></script>
		<script type="text/JavaScript" src="itreasury/js/form_magnifier.js"></script>
		<script type="text/JavaScript" src="itreasury/js/Math.uuid.js"></script>
		<script type="text/JavaScript" src="itreasury/js/datacheck_formvalidate.js"></script>
		<script type="text/JavaScript" src="itreasury/js/datacheck_comparedate.js"></script>
		<script type="text/JavaScript" src="itreasury/js/utils.js"></script>
	</head>

	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
			
		<table id="datagrid3"></table>
	
		<script type="text/javascript">
			$(document).ready(function() {
				//加载分页控件 datagrid
				$('#datagrid3').datagrid({
					title:'test:',
					width:'auto',
					//height:150,
					nowrap: true,
					autoRowHeight: false,
					striped: true,
					collapsible:false,
					url:'testDataGridCheckJSON.json',
					sortName: 'executedate',
					sortOrder: 'desc',
					remoteSort: false,
					idField:'id',
					pagination:false,
					rownumbers:true,
					showFooter:false,
					checkOnSelect:false,
					selectOnCheck:true,
					frozenColumns:[[
						{field:'ck',checkbox:true},
						{title:'id', field:'id', width:150, sortable:true, align: 'center'}
						]],
					columns:[[
						{title:'record', field:'record', width:100,align: 'center', sortable:true}
					]],
					onLoadSuccess:function(){
						$('#datagrid3').datagrid('selectRow',0);
					},
					onCheck:function(index,data){
						alert(JSON.stringify(data));
						alert($('#datagrid3').datagrid('getRows'));
						alert(1);
					},
					onSelect:function(index,data){
						alert(JSON.stringify(data));
						alert($('#datagrid3').datagrid('getRows'));
						alert(2);
					}
					
				});
			});
		</script>
	</body>
</html>